close

open override fun close()

Closes the window if it is open and lets go of the layer. Safe to call twice.